package com.cy.web;

import com.cy.Service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {
    @Autowired
    PayService payService;
    @RequestMapping("/pay/{orderID}")
    public String payOrder(@PathVariable(value = "orderID")String orderID){
        System.out.println("payOrder--------"+"订单ID"+orderID);
//        String remsg = payService.pay(orderID);
        //操作数据库,扣除用户余额
        return orderID+"success";
    }
}
